      int grib_rg_032[] = {
       20,  27,  36,  40,  45,  50,  60,  64,  72,  75,  80,  90,
       90,  96, 100, 108, 108, 120, 120, 120, 128, 128, 128, 128,
      128, 128, 128, 128, 128, 128, 128, 128 };
      int grib_rg_048[] = {
       20,  25,  36, 40,
       45,  50,  60, 60,
       72,  75,  80, 90,
       96, 100, 108, 120,
      120, 120, 128, 135,
      144, 144, 160, 160,
      160, 160, 160, 180,
      180, 180, 180, 180,
      192, 192, 192, 192,
      192, 192, 192, 192,
      192, 192, 192, 192,
      192, 192, 192, 192 };
      int grib_rg_080[] = {
       18 ,  25 ,  36 ,  40,
       45 ,  54 ,  60 ,  64,
       72 ,  72 ,  80 ,  90,
       96 , 100 , 108 , 120,
      120 , 128 , 135 , 144,
      144 , 150 , 160 , 160,
      180 , 180 , 180 , 192,
      192 , 200 , 200 , 216,
      216 , 216 , 225 , 225,
      240 , 240 , 240 , 256,
      256 , 256 , 256 , 288,
      288 , 288 , 288 , 288,
      288 , 288 , 288 , 288,
      300 , 300 , 300 , 300,
      320 , 320 , 320 , 320,
      320 , 320 , 320 , 320,
      320 , 320 , 320 , 320,
      320 , 320 , 320 , 320,
      320 , 320 , 320 , 320,
      320 , 320 , 320 , 320 };
      int grib_rg_1024[] = {
        18,  25,  32,  40,  45,  50,  54,  60,  72,  72,  75,  80,  90,
        90,  96, 100, 108, 120, 120, 120, 125, 135, 144, 150, 160, 160,
       180, 180, 180, 192, 192, 200, 216, 216, 225, 225, 240, 240, 243,
       250, 256, 270, 270, 288, 288, 288, 300, 300, 320, 320, 320, 360,
       360, 360, 360, 360, 360, 375, 375, 384, 384, 400, 400, 405, 432,
       432, 432, 432, 450, 450, 450, 480, 480, 480, 480, 480, 486, 500,
       500, 512, 512, 540, 540, 540, 540, 576, 576, 576, 576, 576, 576,
       600, 600, 600, 600, 640, 640, 640, 640, 640, 640, 648, 675, 675,
       675, 675, 675, 720, 720, 720, 720, 720, 720, 720, 729, 750, 750,
       750, 750, 768, 768, 800, 800, 800, 800, 800, 800, 810, 864, 864,
       864, 864, 864, 864, 864, 864, 864, 900, 900, 900, 900, 900, 900,
       960, 960, 960, 960, 960, 960, 960, 960, 960, 972, 972,1000,1000,
      1000,1000,1000,1024,1024,1024,1024,1080,1080,1080,1080,1080,1080,
      1080,1080,1080,1125,1125,1125,1125,1125,1125,1125,1152,1152,1152,
      1152,1152,1200,1200,1200,1200,1200,1200,1200,1215,1215,1215,1280,
      1280,1280,1280,1280,1280,1280,1280,1280,1280,1280,1296,1296,1350,
      1350,1350,1350,1350,1350,1350,1350,1350,1440,1440,1440,1440,1440,
      1440,1440,1440,1440,1440,1440,1440,1440,1440,1440,1458,1458,1458,
      1500,1500,1500,1500,1500,1500,1500,1500,1536,1536,1536,1536,1536,
      1536,1600,1600,1600,1600,1600,1600,1600,1600,1600,1600,1600,1620,
      1620, 1620, 1728, 1728, 1728, 1728, 1728, 1728, 1728, 1728,
      1728, 1728, 1728, 1728, 1728, 1728, 1728, 1728, 1728, 1728,
      1728, 1800, 1800, 1800, 1800, 1800, 1800, 1800, 1800, 1800,
      1800, 1800, 1800, 1875, 1875, 1875, 1875, 1875, 1875, 1875,
      1875, 1875, 1875, 1875, 1875, 1875, 1920, 1920, 1920, 1920,
      1920, 1920, 1920, 1920, 1944, 1944, 1944, 1944, 1944, 2000,
      2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2025,
      2025, 2025, 2025, 2048, 2048, 2048, 2048, 2048, 2160, 2160,
      2160, 2160, 2160, 2160, 2160, 2160, 2160, 2160, 2160, 2160,
      2160, 2160, 2160, 2160, 2160, 2160, 2160, 2160, 2187, 2187,
      2187, 2187, 2187, 2250, 2250, 2250, 2250, 2250, 2250, 2250,
      2250, 2250, 2250, 2250, 2250, 2304, 2304, 2304, 2304, 2304,
      2304, 2304, 2304, 2304, 2304, 2400, 2400, 2400, 2400, 2400,
      2400, 2400, 2400, 2400, 2400, 2400, 2400, 2400, 2400, 2400,
      2400, 2400, 2400, 2400, 2430, 2430, 2430, 2430, 2430, 2500,
      2500, 2500, 2500, 2500, 2500, 2500, 2500, 2500, 2500, 2500,
      2500, 2500, 2500, 2500, 2560, 2560, 2560, 2560, 2560, 2560,
      2560, 2560, 2560, 2560, 2560, 2560, 2592, 2592, 2592, 2592,
      2592, 2592, 2700, 2700, 2700, 2700, 2700, 2700, 2700, 2700,
      2700, 2700, 2700, 2700, 2700, 2700, 2700, 2700, 2700, 2700,
      2700, 2700, 2700, 2700, 2880, 2880, 2880, 2880, 2880, 2880,
      2880, 2880, 2880, 2880, 2880, 2880, 2880, 2880, 2880, 2880,
      2880, 2880, 2880, 2880, 2880, 2880, 2880, 2880, 2880, 2880,
      2880, 2880, 2880, 2880, 2880, 2880, 2880, 2880, 2880, 2880,
      2880, 2880, 2880, 2916, 2916, 2916, 2916, 2916, 2916, 2916,
      2916, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000,
      3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000,
      3072, 3072, 3072, 3072, 3072, 3072, 3072, 3072, 3072, 3072,
      3072, 3072, 3072, 3072, 3072, 3072, 3072, 3125, 3125, 3125,
      3125, 3125, 3125, 3125, 3125, 3125, 3125, 3125, 3125, 3125,
      3200, 3200, 3200, 3200, 3200, 3200, 3200, 3200, 3200, 3200,
      3200, 3200, 3200, 3200, 3200, 3200, 3200, 3200, 3240, 3240,
      3240, 3240, 3240, 3240, 3240, 3240, 3240, 3240, 3375, 3375,
      3375, 3375, 3375, 3375, 3375, 3375, 3375, 3375, 3375, 3375,
      3375, 3375, 3375, 3375, 3375, 3375, 3375, 3375, 3375, 3375,
      3375, 3375, 3375, 3375, 3375, 3375, 3375, 3375, 3375, 3375,
      3375, 3375, 3375, 3375, 3456, 3456, 3456, 3456, 3456, 3456,
      3456, 3456, 3456, 3456, 3456, 3456, 3456, 3456, 3456, 3456,
      3456, 3456, 3456, 3456, 3456, 3456, 3456, 3600, 3600, 3600,
      3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600,
      3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600,
      3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600,
      3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600, 3600,
      3600, 3645, 3645, 3645, 3645, 3645, 3645, 3645, 3645, 3645,
      3645, 3645, 3645, 3645, 3645, 3645, 3750, 3750, 3750, 3750,
      3750, 3750, 3750, 3750, 3750, 3750, 3750, 3750, 3750, 3750,
      3750, 3750, 3750, 3750, 3750, 3750, 3750, 3750, 3750, 3750,
      3750, 3750, 3750, 3750, 3750, 3750, 3750, 3750, 3750, 3750,
      3750, 3750, 3750, 3750, 3750, 3840, 3840, 3840, 3840, 3840,
      3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840,
      3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840,
      3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840, 3840,
      3840, 3840, 3888, 3888, 3888, 3888, 3888, 3888, 3888, 3888,
      3888, 3888, 3888, 3888, 3888, 3888, 3888, 3888, 3888, 3888,
      3888, 3888, 3888, 3888, 4000, 4000, 4000, 4000, 4000, 4000,
      4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000,
      4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000,
      4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000,
      4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000,
      4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000,
      4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4050,
      4050, 4050, 4050, 4050, 4050, 4050, 4050, 4050, 4050, 4050,
      4050, 4050, 4050, 4050, 4050, 4050, 4050, 4050, 4050, 4050,
      4050, 4050, 4050, 4050, 4050, 4050, 4050, 4050, 4050, 4050,
      4050, 4050, 4050, 4050, 4050, 4050, 4050, 4050, 4096, 4096,
      4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096,
      4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096,
      4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096,
      4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096,
      4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096,
      4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096,
      4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096,
      4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096,
      4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096,
      4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096,
      4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096,
      4096, 4096, 4096, 4096 };
      int grib_rg_128[] = {
       18,  25,  36,  40,
       45,  50,  60,  64,
       72,  72,  80,  90,
       90, 100, 108, 120,
      120, 125, 128, 144,
      144, 150, 160, 160,
      180, 180, 180, 192,
      192, 200, 216, 216,
      216, 225, 240, 240,
      240, 250, 250, 256,
      270, 270, 288, 288,
      288, 300, 300, 320,
      320, 320, 320, 324,
      360, 360, 360, 360,
      360, 360, 360, 375,
      375, 375, 375, 384,
      384, 400, 400, 400,
      400, 405, 432, 432,
      432, 432, 432, 432,
      432, 450, 450, 450,
      450, 450, 480, 480,
      480, 480, 480, 480,
      480, 480, 480, 480,
      486, 486, 486, 500,
      500, 500, 500, 500,
      500, 500, 512, 512,
      512, 512, 512, 512,
      512, 512, 512, 512,
      512, 512, 512, 512,
      512, 512, 512, 512,
      512, 512, 512, 512,
      512, 512, 512, 512 };
      int grib_rg_160[] = {
       18 ,  25 ,  36 ,  40,
       45 ,  50 ,  60 ,  64,
       72 ,  72 ,  80 ,  90,
       90 ,  96 , 108 , 120,
      120 , 125 , 128 , 135,
      144 , 150 , 160 , 160,
      180 , 180 , 180 , 192,
      192 , 200 , 216 , 216,
      225 , 225 , 240 , 240,
      243 , 250 , 256 , 270,
      270 , 288 , 288 , 288,
      300 , 300 , 320 , 320,
      320 , 320 , 324 , 360,
      360 , 360 , 360 , 360,
      360 , 375 , 375 , 375,
      384 , 384 , 400 , 400,
      400 , 405 , 432 , 432,
      432 , 432 , 432 , 450,
      450 , 450 , 450 , 480,
      480 , 480 , 480 , 480,
      480 , 480 , 500 , 500,
      500 , 500 , 500 , 512,
      512 , 540 , 540 , 540,
      540 , 540 , 540 , 540,
      540 , 576 , 576 , 576,
      576 , 576 , 576 , 576,
      576 , 576 , 576 , 600,
      600 , 600 , 600 , 600,
      600 , 600 , 600 , 600,
      640 , 640 , 640 , 640,
      640 , 640 , 640 , 640,
      640 , 640 , 640 , 640,
      640 , 640 , 640 , 640,
      640 , 640 , 640 , 640,
      640 , 640 , 640 , 640,
      640 , 640 , 640 , 640,
      640 , 640 , 640 , 640,
      640 , 640 , 640 , 640,
      640 , 640 , 640 , 640,
      640 , 640 , 640 , 640 }; 
      int grib_rg_200[] = {
       18,  25,  36,  40,
       45,  50,  60,  64,
       72,  72,  75,  81,
       90,  96, 100, 108,
      120, 125, 128, 135,
      144, 150, 160, 160,
      180, 180, 180, 192,
      192, 200, 216, 216,
      225, 225, 240, 240,
      243, 250, 256, 270,
      270, 288, 288, 288,
      300, 300, 320, 320,
      320, 320, 360, 360,
      360, 360, 360, 360,
      375, 375, 375, 384,
      400, 400, 400, 400,
      432, 432, 432, 432,
      432, 450, 450, 450,
      480, 480, 480, 480,
      480, 480, 486, 500,
      500, 500, 512, 512,
      512, 540, 540, 540,
      540, 540, 576, 576,
      576, 576, 576, 576,
      576, 576, 600, 600,
      600, 600, 600, 640,
      640, 640, 640, 640,
      640, 640, 640, 640,
      640, 648, 648, 675,
      675, 675, 675, 675,
      675, 675, 720, 720,
      720, 720, 720, 720,
      720, 720, 720, 720,
      720, 720, 720, 720,
      729, 729, 729, 750,
      750, 750, 750, 750,
      750, 750, 750, 768,
      768, 768, 768, 768,
      768, 768, 768, 800,
      800, 800, 800, 800,
      800, 800, 800, 800,
      800, 800, 800, 800,
      800, 800, 800, 800,
      800, 800, 800, 800,
      800, 800, 800, 800,
      800, 800, 800, 800,
      800, 800, 800, 800,
      800, 800, 800, 800,
      800, 800, 800, 800,
      800, 800, 800, 800 };
       int grib_rg_256[] = {
        18,   25,   32,   40,
        45,   50,   60,   64,
        72,   72,   75,   81,
        90,   96,  100,  108,
       120,  120,  125,  135,
       144,  150,  160,  160,
       180,  180,  180,  192,
       192,  200,  216,  216,
       216,  225,  240,  240,
       243,  250,  256,  270,
       270,  288,  288,  288,
       300,  300,  320,  320,
       320,  324,  360,  360,
       360,  360,  360,  360,
       375,  375,  384,  384,
       400,  400,  400,  432,
       432,  432,  432,  432,
       450,  450,  450,  480,
       480,  480,  480,  480,
       486,  500,  500,  500,
       512,  512,  540,  540,
       540,  540,  540,  576,
       576,  576,  576,  576,
       576,  600,  600,  600,
       600,  600,  640,  640,
       640,  640,  640,  640,
       640,  640,  648,  675,
       675,  675,  675,  675,
       675,  720,  720,  720,
       720,  720,  720,  720,
       720,  720,  729,  729,
       750,  750,  750,  750,
       750,  768,  768,  768,
       768,  800,  800,  800,
       800,  800,  800,  800,
       800,  810,  810,  864,
       864,  864,  864,  864,
       864,  864,  864,  864,
       864,  864,  864,  864,
       864,  900,  900,  900,
       900,  900,  900,  900,
       900,  900,  900,  900,
       960,  960,  960,  960,
       960,  960,  960,  960,
       960,  960,  960,  960,
       960,  960,  960,  960,
       960,  960,  960,  960,
       960,  960,  972,  972,
       972,  972,  972, 1000,
      1000, 1000, 1000, 1000,
      1000, 1000, 1000, 1000,
      1000, 1000, 1000, 1000,
      1000, 1000, 1000, 1024,
      1024, 1024, 1024, 1024,
      1024, 1024, 1024, 1024,
      1024, 1024, 1024, 1024,
      1024, 1024, 1024, 1024,
      1024, 1024, 1024, 1024,
      1024, 1024, 1024, 1024,
      1024, 1024, 1024, 1024,
      1024, 1024, 1024, 1024,
      1024, 1024, 1024, 1024,
      1024, 1024, 1024, 1024,
      1024, 1024, 1024, 1024 };
      int grib_rg_320[] = {
        18,   25,   32,   40,
        45,   50,   60,   64,
        72,   72,   75,   81,
        90,   96,  100,  108,
       120,  120,  125,  135,
       144,  144,  150,  160,
       180,  180,  180,  192,
       192,  200,  216,  216,
       216,  225,  240,  240,
       240,  250,  256,  270,
       270,  288,  288,  288,
       300,  300,  320,  320,
       320,  324,  360,  360,
       360,  360,  360,  360,
       375,  375,  384,  384,
       400,  400,  405,  432,
       432,  432,  432,  450,
       450,  450,  480,  480,
       480,  480,  480,  486,
       500,  500,  500,  512,
       512,  540,  540,  540,
       540,  540,  576,  576,
       576,  576,  576,  576,
       600,  600,  600,  600,
       625,  625,  625,  625,
       625,  640,  640,  648,
       648,  675,  675,  675,
       675,  720,  720,  720,
       720,  720,  720,  720,
       720,  720,  729,  750,
       750,  750,  750,  768,
       768,  768,  768,  800,
       800,  800,  800,  800,
       800,  810,  810,  864,
       864,  864,  864,  864,
       864,  864,  864,  864,
       864,  864,  900,  900,
       900,  900,  900,  900,
       900,  900,  960,  960,
       960,  960,  960,  960,
       960,  960,  960,  960,
       960,  960,  960,  960,
       972,  972, 1000, 1000,
      1000, 1000, 1000, 1000,
      1000, 1000, 1024, 1024,
      1024, 1024, 1024, 1024,
      1080, 1080, 1080, 1080,
      1080, 1080, 1080, 1080,
      1080, 1080, 1080, 1080,
      1080, 1080, 1125, 1125,
      1125, 1125, 1125, 1125,
      1125, 1125, 1125, 1125,
      1125, 1125, 1125, 1125,
      1152, 1152, 1152, 1152,
      1152, 1152, 1152, 1152,
      1152, 1200, 1200, 1200,
      1200, 1200, 1200, 1200,
      1200, 1200, 1200, 1200,
      1200, 1200, 1200, 1200,
      1200, 1200, 1200, 1215,
      1215, 1215, 1215, 1215,
      1215, 1215, 1250, 1250,
      1250, 1250, 1250, 1250,
      1250, 1250, 1250, 1250,
      1250, 1250, 1250, 1250,
      1250, 1250, 1250, 1250,
      1250, 1250, 1280, 1280,
      1280, 1280, 1280, 1280,
      1280, 1280, 1280, 1280,
      1280, 1280, 1280, 1280,
      1280, 1280, 1280, 1280,
      1280, 1280, 1280, 1280,
      1280, 1280, 1280, 1280,
      1280, 1280, 1280, 1280,
      1280, 1280, 1280, 1280,
      1280, 1280, 1280, 1280,
      1280, 1280, 1280, 1280,
      1280, 1280, 1280, 1280,
      1280, 1280, 1280, 1280,
      1280, 1280, 1280, 1280[] = {
      int grib_rg_400[] = {
        18,   25,   32,   40,   45,
        50,   60,   60,   72,   72,
        75,   81,   90,   96,  100,
       108,  120,  120,  125,  128,
       144,  144,  150,  160,  160,
       180,  180,  192,  192,  200,
       200,  216,  216,  225,  240,
       240,  240,  250,  250,  256,
       270,  288,  288,  288,  300,
       300,  320,  320,  320,  324,
       360,  360,  360,  360,  360,
       360,  375,  375,  384,  400,
       400,  400,  405,  432,  432,
       432,  432,  450,  450,  450,
       480,  480,  480,  480,  480,
       486,  500,  500,  512,  512,
       540,  540,  540,  540,  540,
       576,  576,  576,  576,  576,
       576,  600,  600,  600,  600,
       640,  640,  640,  640,  640,
       640,  640,  648,  675,  675,
       675,  675,  675,  720,  720,
       720,  720,  720,  720,  720,
       729,  729,  750,  750,  750,
       750,  768,  768,  768,  800,
       800,  800,  800,  800,  800,
       810,  864,  864,  864,  864,
       864,  864,  864,  864,  864,
       864,  900,  900,  900,  900,
       900,  900,  900,  960,  960,
       960,  960,  960,  960,  960,
       960,  960,  960,  960,  960,
       972,  972, 1000, 1000, 1000,
      1000, 1000, 1000, 1024, 1024,
      1024, 1024, 1024, 1080, 1080,
      1080, 1080, 1080, 1080, 1080,
      1080, 1080, 1080, 1080, 1125,
      1125, 1125, 1125, 1125, 1125,
      1125, 1125, 1125, 1152, 1152,
      1152, 1152, 1152, 1152, 1200,
      1200, 1200, 1200, 1200, 1200,
      1200, 1200, 1200, 1200, 1200,
      1215, 1215, 1215, 1215, 1280,
      1280, 1280, 1280, 1280, 1280,
      1280, 1280, 1280, 1280, 1280,
      1280, 1280, 1280, 1280, 1280,
      1296, 1296, 1296, 1296, 1350,
      1350, 1350, 1350, 1350, 1350,
      1350, 1350, 1350, 1350, 1350,
      1350, 1350, 1350, 1350, 1440,
      1440, 1440, 1440, 1440, 1440,
      1440, 1440, 1440, 1440, 1440,
      1440, 1440, 1440, 1440, 1440,
      1440, 1440, 1440, 1440, 1440,
      1440, 1440, 1440, 1440, 1440,
      1440, 1440, 1458, 1458, 1458,
      1458, 1458, 1458, 1458, 1500,
      1500, 1500, 1500, 1500, 1500,
      1500, 1500, 1500, 1500, 1500,
      1500, 1500, 1500, 1500, 1500,
      1500, 1536, 1536, 1536, 1536,
      1536, 1536, 1536, 1536, 1536,
      1536, 1536, 1536, 1536, 1536,
      1536, 1536, 1600, 1600, 1600,
      1600, 1600, 1600, 1600, 1600,
      1600, 1600, 1600, 1600, 1600,
      1600, 1600, 1600, 1600, 1600,
      1600, 1600, 1600, 1600, 1600,
      1600, 1600, 1600, 1600, 1600,
      1600, 1600, 1600, 1600, 1600,
      1600, 1600, 1600, 1600, 1600,
      1600, 1600, 1600, 1600, 1600,
      1600, 1600, 1600, 1600, 1600,
      1600, 1600, 1600, 1600, 1600,
      1600, 1600, 1600, 1600, 1600,
      1600, 1600, 1600, 1600, 1600,
      1600, 1600, 1600, 1600, 1600,
      1600, 1600, 1600, 1600, 1600,
      1600, 1600, 1600, 1600, 1600,
      1600, 1600, 1600, 1600, 1600 };
      int grib_rg_512[] = {
        18,   25,   32,   40,   45,
        50,   60,   60,   72,   72,
        75,   81,   90,   96,   96,
       100,  108,  120,  125,  128,
       135,  144,  150,  160,  160,
       180,  180,  180,  192,  192,
       200,  216,  216,  225,  225,
       240,  240,  243,  250,  256,
       270,  270,  288,  288,  288,
       300,  320,  320,  320,  320,
       360,  360,  360,  360,  360,
       360,  375,  375,  384,  384,
       400,  400,  400,  432,  432,
       432,  432,  450,  450,  450,
       480,  480,  480,  480,  480,
       486,  500,  500,  512,  512,
       540,  540,  540,  540,  540,
       576,  576,  576,  576,  576,
       576,  600,  600,  600,  640,
       640,  640,  640,  640,  640,
       640,  648,  675,  675,  675,
       675,  675,  720,  720,  720,
       720,  720,  720,  720,  729,
       729,  750,  750,  750,  768,
       768,  768,  800,  800,  800,
       800,  800,  800,  810,  864,
       864,  864,  864,  864,  864,
       864,  864,  864,  864,  900,
       900,  900,  900,  900,  900,
       960,  960,  960,  960,  960,
       960,  960,  960,  960,  960,
       960,  972,  972, 1000, 1000,
      1000, 1000, 1000, 1024, 1024,
      1024, 1024, 1080, 1080, 1080,
      1080, 1080, 1080, 1080, 1080,
      1080, 1080, 1125, 1125, 1125,
      1125, 1125, 1125, 1125, 1125,
      1125, 1152, 1152, 1152, 1152,
      1152, 1200, 1200, 1200, 1200,
      1200, 1200, 1200, 1200, 1200,
      1215, 1215, 1215, 1280, 1280,
      1280, 1280, 1280, 1280, 1280,
      1280, 1280, 1280, 1280, 1280,
      1280, 1296, 1296, 1296, 1350,
      1350, 1350, 1350, 1350, 1350,
      1350, 1350, 1350, 1350, 1350,
      1440, 1440, 1440, 1440, 1440,
      1440, 1440, 1440, 1440, 1440,
      1440, 1440, 1440, 1440, 1440,
      1440, 1440, 1440, 1440, 1458,
      1458, 1458, 1458, 1500, 1500,
      1500, 1500, 1500, 1500, 1500,
      1500, 1500, 1500, 1536, 1536,
      1536, 1536, 1536, 1536, 1536,
      1536, 1600, 1600, 1600, 1600,
      1600, 1600, 1600, 1600, 1600,
      1600, 1600, 1600, 1600, 1600,
      1600, 1600, 1620, 1620, 1620,
      1620, 1728, 1728, 1728, 1728,
      1728, 1728, 1728, 1728, 1728,
      1728, 1728, 1728, 1728, 1728,
      1728, 1728, 1728, 1728, 1728,
      1728, 1728, 1728, 1728, 1728,
      1728, 1728, 1728, 1728, 1728,
      1728, 1800, 1800, 1800, 1800,
      1800, 1800, 1800, 1800, 1800,
      1800, 1800, 1800, 1800, 1800,
      1800, 1800, 1800, 1800, 1800,
      1800, 1800, 1800, 1875, 1875,
      1875, 1875, 1875, 1875, 1875,
      1875, 1875, 1875, 1875, 1875,
      1875, 1875, 1875, 1875, 1875,
      1875, 1875, 1875, 1875, 1875,
      1875, 1875, 1875, 1875, 1920,
      1920, 1920, 1920, 1920, 1920,
      1920, 1920, 1920, 1920, 1920,
      1920, 1920, 1920, 1920, 1920,
      1920, 1920, 1944, 1944, 1944,
      1944, 1944, 1944, 1944, 1944,
      1944, 1944, 1944, 2000, 2000,
      2000, 2000, 2000, 2000, 2000,
      2000, 2000, 2000, 2000, 2000,
      2000, 2000, 2000, 2000, 2000,
      2000, 2000, 2000, 2000, 2000,
      2000, 2000, 2000, 2000, 2000,
      2000, 2000, 2000, 2000, 2000,
      2025, 2025, 2025, 2025, 2025,
      2025, 2025, 2025, 2025, 2025,
      2025, 2025, 2025, 2025, 2025, 2025, 2025, 2025, 2048, 2048,
      2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048,
      2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048,
      2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048,
      2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048,
      2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048,
      2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048,
      2048, 2048 };
int* grib_rg[] = {
grib_rg_048,
grib_rg_080,
grib_rg_1024,
grib_rg_128,
grib_rg_160,
grib_rg_200,
grib_rg_256,
grib_rg_320,
grib_rg_400,
grib_rg_512
};

int grib_rg_idx[] = {
48,
80,
1024,
128,
160,
200,
256,
320,
400,
512
};

#define GRIB_MAX_RG_GRIDS  10

